package com.fuqiang.nightshopumsmodel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @Description:后台用户和权限关系表(除角色中定义的权限以外的加减权限)
 * @author fuqiang
 * @since 2020-04-14
 */
@ApiModel(value ="后台用户和权限关系表(除角色中定义的权限以外的加减权限)")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ums_admin_permission_relation")
public class UmsAdminPermissionRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("admin_id")
    private Long adminId;
    @TableField("permission_id")
    private Long permissionId;
    @TableField("type")
    private Integer type;


    public static final String ID = "id";

    public static final String ADMIN_ID = "admin_id";

    public static final String PERMISSION_ID = "permission_id";

    public static final String TYPE = "type";

}
